<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Hugo 0.88.1">
    <title>Signin Template · Bootstrap v5.1</title>

    <link rel="canonical" th:href="@{https://getbootstrap.com/docs/5.1/examples/sign-in/}">

    

    <!-- Bootstrap core CSS -->
<link th:href="@{/assets/dist/css/bootstrap.min.css}" rel="stylesheet">

    <style>
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
    </style>

    
    <!-- Custom styles for this template -->
    <link th:href="@{/css/signin.css}" rel="stylesheet">
  </head>
  <body class="text-center">
    
<main class="form-signin">
  <img class="mb-4" th:src="@{/assets/brand/bootstrap-logo.svg}" alt="" width="72" height="57">
  <h1 class="h3 mb-3 fw-normal">请登录</h1>
  <form th:action="@{/login}" method="post">
    <div class="form-floating">
      <input type="text" class="form-control" id="floatingInput" placeholder="username"  name="username">
      <label for="floatingInput">用户名</label>
    </div>
    <div class="form-floating">
      <input type="password" class="form-control" id="floatingPassword" placeholder="Password" name="password">
      <label for="floatingPassword">密码</label>
    </div>
    <div class="checkbox mb-3">
      <label>
        <input type="checkbox" value="remember-me" name="rememberme"> 记住我
      </label>
    </div>
    <div>
      <button class="w-100 btn btn-lg btn-primary" type="submit">登录</button>
      <a th:href="@{/register}">
        <button class="w-100 btn btn-lg btn-primary" type="button">注册</button>
      </a>
    </div>
    <p th:if="${param.error}">用户名或密码错误，登录失败！</p>
  </form>
  <p class="mt-5 mb-3 text-muted">&copy; 2017–2022</p>
</main>


    
  </body>
</html>
